<div class="row" style="width:100%">
  <div class="formgroup">
    <nz-table #nzTable
              [nzBordered]="true"
              [nzAjaxData]="_dataSet"
              [nzShowSizeChanger]="true"
              [nzTotal]="_total"
              [(nzPageIndex)]="_current"
              (nzPageIndexChange)="refreshData()"
              [(nzPageSize)]="_pageSize"
              (nzPageSizeChange)="refreshData(true)"
              (nzDataChange)="_displayDataChange($event)"
              [nzScroll]="{ y: 500 }">
      <ng-template #nzFixedHeader>
        <thead nz-thead>
        <tr>
          <th nz-th [nzCheckbox]="true" [nzWidth]="'5%'">
            <label *ngIf="allCheckbox==true" nz-checkbox [(ngModel)]="_allChecked" (ngModelChange)="_checkAll($event)">
            </label>
          </th>
          <th nz-th [nzWidth]="'20%'">
            <span>用车申请主旨</span>
          </th>
          <th nz-th [nzWidth]="'12%'">
            <span>申请人</span>
          </th>
          <th nz-th [nzWidth]="'12%'">
            <span>联系人</span>
          </th>
          <th nz-th [nzWidth]="'15%'">
            <span>用车开始时间</span>
          </th>
          <th nz-th [nzWidth]="'15%'">
            <span>用车结束时间</span>
          </th>
          <th nz-th [nzWidth]="'6%'">
            <span>状态</span>
          </th>
          <th nz-th [nzWidth]="'20%'">
            <span>操作</span>
          </th>
        </tr>
        </thead>
      </ng-template>
      <tbody nz-tbody>
      <tr nz-tbody-tr *ngFor="let data of nzTable.data">
        <td nz-td [nzCheckbox]="true">
          <label *ngIf="data.status!=0" nz-checkbox [(ngModel)]="data.checked" (ngModelChange)="_refreshStatus($event,data.oid)" name="{{data.oid}}">
          </label>
        </td>
        <td nz-td>{{data.subject}}</td>
        <td nz-td>{{data.applicant}}</td>
        <td nz-td>{{data.contact}}</td>
        <td nz-td>{{data.starttime}}</td>
        <td nz-td>{{data.endtime}}</td>
        <td nz-td>{{data.statusname}}</td>
        <td nz-td>
          <!--<a href="#/camDetail;meetingoid={{data.oid}};roomoid=/meetingDetail?userId={{userId}}">详情查看</a>-->
          <a href="#/camDetail?userId={{userId}}&psn={{data.processsn}}&comeBack=camSearch">详情查看</a>
          &nbsp;
          <a *ngIf="data.cancel == true" (click)="cancel(data)">取消</a>
          &nbsp;<!--
          <a *ngIf="data.status === 1 || data.status === 4 ">归还</a>-->
        </td>
      </tr>
      </tbody>
    </nz-table>
  </div>
</div>
